#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :first_last_reverse_34.py
# @Time      :2020/6/23 15:19
# @Author    :Administrator


def reverse_first_last(arr):
    arr.append(arr.pop(0))
    return arr


arr = [1, 2, 3]
print(reverse_first_last(arr))
